import { createRouter, createWebHistory } from 'vue-router';
import ShoppingCar from '../views/ShoppingCar.vue';
import TodoList from '../views/Todo.vue';

const routes = [
  {
    path: '/',
    name: 'todo',
    component: TodoList,
  },
  {
    path: '/car',
    name: 'car',
    component: ShoppingCar,
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
